home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
m
/
maxonc++2.dms
/
maxonc++2.adf
/
MCPIncl.lha
/
fstream.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-22
|
836b
|
46 lines
#ifndef _INCLUDE_FSTREAM_H
#define _INCLUDE_FSTREAM_H
#ifndef _INCLUDE_STREAM_H
#include <stream.h>
#endif
typedef long streampos;
typedef long streamoff;
class fstreambase: public virtual ios
{ protected:
fstreambase(FILE *f=0);
~fstreambase();
public:
FILE *open(const char*, int);
void close();
int buffer(unsigned s);
void flush();
int seekg(long, int=ios::beg);
long tellg();
};
class ofstream: public ostream, public fstreambase
{ public:
ofstream();
ofstream(const char*, int = ios::out);
~ofstream();
};
class ifstream: public istream, public fstreambase
{
public:
ifstream();
ifstream(const char*, int = ios::in);
~ifstream();
};
class fstream: public ostream, public istream, public fstreambase
{ public:
fstream();
fstream(const char*, int);
~fstream();
};
#endif